FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest

LABEL \
        org.opencontainers.image.title="mysql_keentune" \
        org.opencontainers.image.version="latest" \
        maintainer="OpenAnolis KeenTune SIG"

COPY mysql_keentune.sh /usr/local/bin/

RUN yum install systemd perl libaio net-tools procps-ng util-linux-user numactl python36 polkit ethtool irqbalance pciutils mysql-devel mysql-server mysql-common openssl-devel git keentuned keentune-target -y
RUN pip3 install pyudev requests -i https://pypi.tuna.tsinghua.edu.cn/simple

